<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <template>
        <img src="http://www.atguigu.com/images/indexIcon/student/cover.jpg" alt="">
    </template>
</body>
<script>
    var temp = document.querySelector("template");
    console.log(temp.content)

</script>
</html>